<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- saved from url=(0086)http://mictheory.zjgsu.edu.cn:8000/MicroTheory/paper/paperFinish?step=3&answer.id=1415 -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!--<base href="http://mictheory.zjgsu.edu.cn:8000/MicroTheory/">--><base href=".">
    
    <title>提交成功</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<script src="./提交成功_files/jquery-1.8.0.min.js"></script>
	<link href="./提交成功_files/bootstrap.css" rel="stylesheet" media="screen">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <div class="container-fluid">
    	<div class="row-fluid">
    		<div class="span12" style="text-align: center;">
    			<h1>您的答卷提交成功！<br></h1>
    			<h2 id="score_h">成绩为<span style="color:red;">74</span>分</h2>
    			<br>
    		</div>
    		<div>
    			<input onclick="closeWin();" type="button" class="btn btn-success btn-block" value="点击关闭">
    		</div>
    	</div>
    </div>
  
  
  <script type="text/javascript">
  	var answerId = "1415";
  	var step = 3;
  	
  	$(document).ready(function(){
  		getAnswer();
  		showScore();
  	});
  	
  	function showScore(){
	  	$("#score_h").html("成绩为<span style='color:red'>" + answer.score + "</span>分");
  	}
  	
  	var answer;
  	function getAnswer(){
  		$.ajax({
                type:"post",
                url:"answer/queryAnswerById",
                timeout:10000,
                cache:false,
                async:false,
                data:{"answer.id": answerId},
                dataType:"json",
                success:function(data){
                	answer = data.answer;
                },
                error:function(msg){
                    alert('请求发生错误');
                }
        });
  	}
  
  	function closeWin(){
  		var userAgent = navigator.userAgent;
		if (userAgent.indexOf("Chrome") != -1 || userAgent.indexOf("IE") != -1 || userAgent.indexOf("Firefox") != -1 || userAgent.indexOf("Presto") != -1) {
		    window.location.href = "/MicroTheory/home";
		} else {
			if(step == null){
		  		history.go(-2);
	  		}else{
	  			history.go(-step);
	  		}
		}  
  	}
  </script>

</body></html>